#ifndef TDLGWAVE_H
#define TDLGWAVE_H

#include <QDialog>
#include "qcustomplot/qcustomplot.h"

namespace Ui {
class TDlgWave;
}

class TDlgWave : public QDialog
{
    Q_OBJECT

public:
    explicit TDlgWave(QWidget *parent = nullptr);
    ~TDlgWave();

private:
    Ui::TDlgWave *ui;

    //图表
    QCustomPlot *m_customPlot = nullptr;
    int index = 0;
    double k = 0;
    double delta = 2 * M_PI / 50.0;

private slots:
    void slotRangeChanged(const QCPRange &newRange,const QCPRange &oldRange);
    void slotAutoTest();

};

#endif // TDLGWAVE_H
